cmake_minimum_required(VERSION 2.8)

file(GLOB asynio_src 	"*.cpp")
	
if (${UNIX_OS})
	include_directories(
		${PROJECT_SOURCE_DIR}/include
		${PROJECT_SOURCE_DIR}/crt
		${PROJECT_SOURCE_DIR}/extensions/include
		${by3rd_library_include}
		/usr/local/include
		/opt/include
		/usr/include
		)

elseif (${WIN_OS})

else()

endif()

link_directories(
	/opt/local/lib
	/opt/lib
	${PROJECT_SOURCE_DIR}/lib//${CMAKE_BUILD_TYPE}/
	)


add_library(asynio SHARED ${asynio_src})

set_target_properties(asynio PROPERTIES OUTPUT_NAME "asynio")
set_target_properties(asynio PROPERTIES COMPILE_FLAGS ${dynamic})
set_target_properties(asynio PROPERTIES COMPILE_FLAGS ${compile})

target_link_libraries(asynio dl stdcrt)



